package astra.client.models;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.List;

/**
 * @author Kotelnikov Dmitry <a href="mailto:dimonnot@mail.ru"/>
 */
public class TableRequestResult<T> implements IsSerializable{
    private int count;
    private List<T> rows;

    public TableRequestResult() {
    }

    public TableRequestResult(int count, List<T> rows) {
        this.count = count;
        this.rows = rows;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
